package com.application.lucky.config;

import android.text.TextUtils;

import com.application.lucky.BuildConfig;

public class Config {
    public static class UserLevel {
        public static final int LEVEL_ = 1;//登录用户   什么资料也没有完善
        public static final int Level_phone = 2;//只完善了是手机号的用户
        public static final int level_idcard = 3;//完善了身份证的用用户
        public static final int level_brankcard = 4;//添加了银行卡
    }

    public static class UserModel {
        public static final int tryUser = 1;//试玩玩家
        public static final int register = 2;//注册玩家

    }

    public static final String HIDE_PIC = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1569734212874&di=04820ea8b0aea0b782731d2acb1afd61&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F864143d50127aaa43536b78df07e192163b0b84b3ae7-Mm8hxP_fw658";
    public static final int length = 50;
    public static final String KEFU_ID = "10000";
    public static final int ID_proguard = 65535888;

    public static class IMIdUtils {
        public static String getIMUid(String id) {
            if (TextUtils.isEmpty(id)) {
                return "";
            }
            if (BuildConfig.DEBUG) {
                return "red_user_" + id + "@roamblue";


            } else {

                return "red_pro_" + id + "@roamblue";
            }

        }

        public static String getUserId(String imid) {
            return imid.substring(imid.lastIndexOf("_") + 1, imid.indexOf("@"));
        }

        public static boolean isKefu(String u) {
            return KEFU_ID.equals(getUserId(u));
        }

    }

}
